package com.kai.awt.layoutmanager;

import java.awt.*;

/**
 * @Author Mr.Yan
 * @create 2022/3/19 20:14
 * @description:
 */
public class Demo2 {
    public static void main(String[] args) {
        Frame frame = new Frame("test2");


        ScrollPane panel = new ScrollPane(ScrollPane.SCROLLBARS_ALWAYS);
        panel.add(new TextArea("测试"));
        panel.add(new Button("测试"));
        frame.add(panel);

        frame.setLocation(100,200);
        frame.setSize(300,300);
        frame.setVisible(true);
    }
}
